//
//  TKXmppParseHelper.h
//  TKIM
//
//  Created by liupm on 15/10/19.
//  Copyright © 2015年 liupm. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface TKIMDataDecoder : NSObject<TKIMDataDecoderProtocol>
/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析富文本消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMMessage *)parseRichTxtMessage:(NSDictionary *)body;


/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析模板消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMMessage *)parseTemlMessage:(NSDictionary *)body;


/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析文本消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMMessage *)parseTxtMessage:(NSDictionary *)body;


/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析评分消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMMessage *)parseScoreMessage:(NSDictionary *)body;


/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析指令消息
 *
 *  @param body
 *
 *  @return
 */
-(void)parseCmdMessage:(TKIMMessage *)msg;


/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析图片消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMImageMessage *)parseImageMessage:(NSDictionary *)body;


/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析语音消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMAudioMessage *)parseAudioMessage:(NSDictionary *)body;

/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析视频消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMVideoMessage *)parseVideoMessage:(NSDictionary *)body;

/**
 *  @Author lpm, 15-11-02 10:11:21
 *
 *  @brief  解析位置消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMLocationMessage *)parseLocationMessage:(NSDictionary *)body;


/**    02 10:11:21
 *
 *  @brief  解析文件消息
 *
 *  @param body
 *
 *  @return
 */
-(TKIMFileMessage *)parseFileMessage:(NSDictionary *)body;


/**
 *  @Author lpm, 16-03-01 16:03:42
 *
 *  @brief  解析消息体
 *
 *  @param body
 */
-(void)parseBody:(NSDictionary *)body msg:(TKIMMessage *)msg;

@end
